package com.ayit.car.service;

import com.ayit.car.common.result.PageResult;
import com.ayit.car.pojo.Employee;
import com.ayit.car.pojo.dto.EmployeeDTO;
import com.ayit.car.pojo.dto.EmployeeLoginDTO;
import com.ayit.car.pojo.dto.EmployeePageQueryDTO;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 为王下葬
* @description 针对表【employee(员工信息)】的数据库操作Service
* @createDate 2024-06-18 20:40:38
*/
public interface EmployeeService extends IService<Employee> {


    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    void save(EmployeeDTO employeeDTO);

    /**
     * 分页查询员工信息
     * @param employeePageQueryDTO
     * @return
     */
    PageResult pageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 启用或禁用员工
     * @param status
     * @param id
     */
    void startOrStop(Integer status, Long id);

    /**
     * 根据id查询员工信息
     * @param id
     * @return
     */
    Employee getById(Long id);

    /**
     * 编辑员工信息
     * @param employeeDTO
     */
    void update(EmployeeDTO employeeDTO);

}
